package com.gxa.service;

import com.gxa.common.JsonResult;
import com.gxa.common.R;
import com.gxa.pojo.Contract;
import com.gxa.pojo.Contract_status;

import java.util.Date;

public interface ContractService {
    JsonResult queryContractMap(Integer page, Integer limit);

    R searchContractByEntity(Contract contract);

    R searchContractByName(String contract_search);

    R insertNewContractList(Contract contract);

    R updateContractStatusList(Contract_status contract_status);

    R deleteContractByNo(String contract_no);

    R updateContractList(Contract contract);

    R updateContractRenewList(String contract_endday, Double contract_summoney, Double contract_receivemoney,Integer contract_id);

    R updateContractReceive(Double contract_receivemoney,Integer contract_id);

    JsonResult searchContractByStartday(Integer page, Integer limit);

    JsonResult searchContractByEndday(Integer page, Integer limit);

    JsonResult searchNewContractByWeek(Integer page, Integer limit);

    JsonResult searchDueContractByWeek(Integer page, Integer limit);

    JsonResult searchDueContractByMonth(Integer page, Integer limit);

    JsonResult searchNewContractByMonth(Integer page, Integer limit);

    R insertContractPart(String contract_newPart);
}
